package com.cn.yz.springboot.rabbitmq.receiver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class Receiver {
	
	private static Logger logger = LoggerFactory.getLogger(Receiver.class);
	
	@RabbitListener(queues = "spring-boot")
	public void receiveMessage(Object message){
		logger.info("Received <" + message + ">");
	}
}
